<template>
  <div class="lianxi">
    <div class="header">
      <van-icon name="arrow-left" class="icon" @click="toBack" />
    </div>
    <div class="lianxi_list">
      <div class="lianxi_item">
        <img src="../../assets/weixi.png" />
        <van-cell title="官方微信" label="请扫描二维码，关注官方微信" is-link @click="showCode()"/>
      </div>
      <div class="lianxi_item">
        <img src="../../assets/phone.png" />
        <van-cell title="服务热线" label="028-5586-5688" is-link/>
      </div>
      <div class="lianxi_item">
        <img src="../../assets/web.png" />
        <van-cell title="官方网站" label="www.guanfangwanzhan.com" is-link />
      </div>
      <div class="lianxi_item">
        <img src="../../assets/weizi.png" />
        <van-cell title="售后服务网点" label="优先获取距离你最近的地址" is-link />
      </div>
    </div>

    <!-- 微信二维码弹出层 -->
    <van-popup v-model="show" class="weixinPopup">
      <img src="../../assets/qrcode.png" alt="">
      <p style="text-align:center">扫一扫，关注微信</p>
    </van-popup>
  </div>
</template>

<script>
export default {
  data() {
    return {
      show: false,
    };
  },

  methods: {
    // 展示二维码
    showCode(){
      this.show=true
    },
    toBack() {
      this.$router.go(-1);
    },
  },
};
</script>
<style scoped>
.header {
  background-image: url(../../assets/lianxi_bg.jpg);
  background-size: 100% 100%; /*按比例缩放*/
  background-repeat: no-repeat;
  height: 190px;
}
.header .icon {
  font-size: 20px;
  margin-top: 15px;
  margin-left: 8px;
  color: #fff;
}
.lianxi_list{
  margin-top: 10px;
}
.lianxi_item{
    margin-top: 15px;
    margin-left: 20px;
    margin-right: 20px;
    height: 80px;
    background-color: rgb(255, 255, 255);
     /* box-shadow: 0 0 4px #ccc; */
    box-shadow: 4px 4px 4px 0 rgb(158 117 255 / 20%);
    border-radius: 10px;
    opacity: .8;
}
.lianxi_item img{
    margin-top: 10px;
    margin-left: 8px;
}
.lianxi_item .van-cell {
  width: 80%;
  float: right;
  margin-top: 5px;
}
.van-cell__title span {
  font-size: 16px;
}
.van-cell__label {
  font-size: 14px;
}
.van-cell__right-icon {
  margin-top: 15px;
  font-size: 17px;
}
.weixinPopup img{
  width:250px;
  height: 250px;
}
</style>